package com.star.happy.wallpaper.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.star.happy.user.service.IDubboServcie;
import com.star.happy.wallpaper.entity.HappyWallpaper;
import com.star.happy.wallpaper.mapper.HappyWallpaperMapper;
import com.star.happy.wallpaper.service.HappyWallpaperService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.annotation.DubboService;

/**
 *
 */
@DubboService
public class HappyWallpaperServiceImpl extends ServiceImpl<HappyWallpaperMapper, HappyWallpaper> implements HappyWallpaperService {

    @DubboReference(check = false)
    private IDubboServcie iDubboServcie;

    @Override
    public String test() {
        for (int i = 0 ;i <30 ;i++){
            System.out.println(i+"秒");
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        return iDubboServcie.test();
    }
}




